home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntkb.zip / NTKB.EXE / Q108 / 5 / 81.TXT < prev   
Text File  |  1993-12-22  |  5KB  |  114 lines

  1. DOCUMENT:Q108581  21-DEC-1993  [W_NT]
  2. TITLE   :Setting Up VI POSIX Editor for Windows NT 3.1
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. --------------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT Resource Kit for Windows NT and Windows NT Advanced
  12.    Server version 3.1
  13. --------------------------------------------------------------------------
  14.  
  15. To successfully execute the VI POSIX Editor that ships with the Windows NT
  16. Resource Kit, you must correctly setup the system environment. The Windows
  17. NT "Resource Kit Tools Help" helpfile does not give all the information
  18. needed to configure VI for use with Windows NT 3.1. To correctly setup VI
  19. for use within Windows NT 3.1, perform the following steps:
  20.  
  21. 1. In the Control Panel window, choose the System icon.
  22.  
  23. 2. In "User Environment Variables for <user>" box, enter the following
  24.    environment variables:
  25.  
  26.       TERM = ansi
  27.       TERMCAP = //<drive letter in ALL CAPS>/<dir>/<termcap filename>
  28.       _POSIX_TERM = on
  29.       tmp = //<drive letter in ALL CAPS>/<dir>
  30.       path = <drive letter>:\<vi executable location>
  31.  
  32.  - The TERM variable needs to have a value that matches an entry in the
  33.    TERMCAP file; by default, this entry is named ansi. Make sure the word
  34.    "ansi" is lowercase.
  35.  
  36.  - The TERMCAP variable contains the full path of the TERMCAP file
  37.    including the TERMCAP filename itself. You must use the POSIX style
  38.    naming convention and the drive letter must be in uppercase. You can
  39.    customize the entry in the TERMCAP file according to your usual command
  40.    prompt window size; if you usually use a window that's not 80 columns-by-
  41.    25 lines, change the CO entry to match the number of columns, and change
  42.    the LI entry to match the number of lines. For example, if you usually
  43.    use a 100 column-by-60 line window, the CO entry would be "co#100" and
  44.    the LI entry would be "li#60". There is an example of a TERMCAP file
  45.    later in this document.
  46.  
  47.  - The POSIX_TERM variable must be set to "on" to use the terminal
  48.    emulation portion of the POSIX server.
  49.  
  50.  - The TMP variable must be set to any valid directory, you must use the
  51.    POSIX style naming convention, and the drive letter must be in
  52.    uppercase. The drive letter itself must be located on an NTFS volume. If
  53.    /tmp is not located on an NTFS volume, then you will only be able to
  54.    launch vi from any local root directory.
  55.  
  56.  - The PATH variable needs to include the directory where the vi executable
  57.    resides, to be able to run it from anywhere. You should use the standard
  58.    MS-DOS naming convention.
  59.  
  60. Example
  61. -------
  62.  
  63. If the directory of the TERMCAP file and the location of "tmp" is on drive
  64. D, AND VI.EXE is located in the D:\reskit\posix directory, then the
  65. environment variable entries should be the following:
  66.  
  67.    TERM = ansi
  68.    TERMCAP = //D/etc/termcap       (Drive letter must be in ALL
  69.    CAPS)
  70.    _POSIX_TERM = on
  71.    tmp = //D/etc                   (Drive letter must be in ALL
  72.    CAPS)
  73.    path = d:\reskit\posix
  74.  
  75. You can verify that these environment variables are set correctly by typing
  76. "set" from the command prompt. However, do not initialize these environment
  77. variables using "set" because they will disappear when you exit the VDM.
  78. Always use the System applet.
  79.  
  80. The TERMCAP file must have the following entries to work under Windows NT:
  81.  
  82. li|ansi|psx_ansi|:\
  83.              :co#80:li#25:\
  84.              :am:pt:ms:bw:\
  85.              :cl=\E[2J:cm=\E[%i%d;%dH:ce=\E[K:cd=\E[J:\
  86.              :sf=\E[S:sr=\E[T:\
  87.               :ho=\E[H:sc=\E[s:rc=\E[u:up=\E[A:d=^J:nd=\E[C:le=^H:\
  88.               :ku=\E[A:kd=\E[V:kr=\E[C:kl=\E[D:kb=^H:\
  89.               :so=\E[7m:se=\E[m:mr=\E[7m:me=\E[0m:\
  90.  
  91. WARNING: Having the "tmp" variable set to a POSIX-style path causes
  92. problems with other applications that look for "tmp" because they expect
  93. the "tmp" variable to be set to a standard MS-DOS style naming convention,
  94. and may fail when it is not.
  95.  
  96. Additional reference words: 3.10
  97. KBCategory:
  98. KBSubCategory: ntap posixap
  99.  
  100. =============================================================================
  101.  
  102. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  103. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  104. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  105. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  106. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  107. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  108. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  109. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  110. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  111. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  112. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  113.  
  114. Copyright Microsoft Corporation 1993.